import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: '首页',
    component: () => import('../views/home.vue')
  },
  {
    path: '/deploy',
    name: '部署模型',
    component: () => import('../views/deploy/deploy.vue')
  },
  {
    path: '/create',
    name: '创建模型',
    component: () => import('../views/create/create.vue')
  },
  {
    path: '/createGather',
    name: '创建数据集',
    component: () => import('../views/create/createGather.vue')
  },
  {
    path: '/createServer',
    name: '创建新服务器',
    component: () => import('../views/create/createServer.vue')
  },
  {
    path: '/createDrill',
    name: '开始训练',
    component: () => import('../views/create/createDrill.vue')
  },
  {
    path: '/createDrill2',
    name: '训练进度',
    component: () => import('../views/create/createDrill2.vue')
  },
  {
    path: '/createDrill3',
    name: '榜单测评',
    component: () => import('../views/create/createDrill3.vue')
  },
  {
    path: '/gather',
    name: '数据集模块',
    component: () => import('../views/gather/gather.vue')
  },
  {
    path: '/server',
    name: '资源模快',
    component: () => import('../views/server/server.vue')
  },
  {
    path: '/dataSum',
    name: '模快',
    component: () => import('../views/dataSum/dataSum.vue')
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
